package ${entityPackage};
#parse("/template/func.vm")
#set ($className =  $table.className)
import java.io.Serializable;
import java.util.Date;

import ${comonPath}.common.entity.StringAndEqualsObject;

/** 
* @className:$!className
* @description: $!table.remark
* @version:v1.0
* @author:$author
* @date: $now
* @Copyright $copyright
*/
public class $className extends StringAndEqualsObject implements Serializable {
    /**
     * @Fields serialVersionUID
     */
    private static final long serialVersionUID = 1L;

	#* 生成属性 *#
#generateColumns()

	#* 构造方法 *#
#generateConstructor($className)
	
	#*  生成get,set方法 *#
#generateJavaColumns()
 
}
#* ===================函数定义=================== *#
#macro ( generateColumns )  #foreach( $column in $table.columns)
	/**
	 * @Fields $table.tableName.$!column.fieldName : $!column.remark
	 */
	private $!column.javaType $!column.fieldName;
#end #end
#* 生成java构造函数 *#########
#macro ( generateConstructor $constructor)
	public $!constructor(){
	}
#end
#*  生成get,set方法 *#########
#macro ( generateJavaColumns )
#foreach ( $column in $table.columns )

	/**
	 * @Fields $!column.fieldName of $table.tableName: 设置  $!column.remark
	 */
	public void set#cap_first($column.fieldName)( $!column.javaType $!column.fieldName ) {
        this.$!column.fieldName = $!column.fieldName;
	}

	/**
	 * @Fields $!column.fieldName of $table.tableName: 返回  $!column.remark
	 */
	public $!column.javaType get#cap_first($column.fieldName)() {
        return this.$!column.fieldName;
	}
#end
#end